Programming With QuickTime Sprites

| Previous | Chapter Contents | Chapter Top | Next |

Adding More Actions to Other Sprites

To set the movie's looping mode to palindrome, you add an action that is triggered when the key frame is loaded, as shown in Listing 1-14 . This action is triggered every time the key frame is reloaded.

Listing 14 Adding more actions to other sprites

        loopingFlags = loopTimeBase | palindromeLoopTimeBase;
        FailOSErr( AddMovieSetLoopingFlagsAction( sample,
                    kParentAtomIsContainer,
                    kQTEventFrameLoaded, loopingFlags ) )

© 1998 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top | Next |